//
//
//
#pragma once

#include <vector>

#define NAN -1

class FSearch
{
public:
	FSearch(void);
	~FSearch(void);
public:

	/// returns -1 if not found
	int find(std::vector<double> const &trace, double val);
	bool isNaN(double d) { return d == NAN; };
	bool isEqual(double d1, double d2) { return d1 == d2; };
};

